import Vue from "vue";
import VueRouter from "vue-router";
import NotFound from "@/views/not-found.vue";
import QtMain from "@/views/qt-main.vue";
import QtNew from "@/views/qt-new.vue";
import QtSport from "@/views/qt-sport.vue";
import SpMain from "@/views/sp-main.vue";
import SpDomestic from "@/views/sp-domestic.vue";

import SpAbroad from "@/views/sp-abroad.vue";

Vue.use(VueRouter);
const router = new VueRouter({
    routes: [
  {path:'/',redirect:'/main'},
    { path: "/main", component: QtMain },
    { path: "/new", component: QtNew },
    { path: "/sport", component: QtSport },
    {
      path: "/sport",
      component: QtSport,
      children: [
        { path: "main1", component: SpMain },
        { path: "abroad", component: SpAbroad },

        { path: "domestic", component: SpDomestic },
      ],
        },
    // 官方语言放最后
    { path: "*", component: NotFound },
  ],
});
export default router;
